package com.jimple.apps.RssClient.Properties;

import java.io.File;
import java.io.FileInputStream;
import java.util.Properties;

public class LoadFeeds {

	private static final String FeedsLocation = "feeds.dat";

	public static Properties LoadFeeds() {
		try {
			String tempDir = System.getenv("temp");

			File configFile = new File(tempDir, FeedsLocation);
			if (!configFile.exists()) {
				configFile.createNewFile();
			}
			Properties props = new Properties();
			FileInputStream fis = new FileInputStream(configFile);
			props.load(fis);
			fis.close();
			return props;

		} catch (Exception e) {
			e.printStackTrace();
		}
		return null;
	}
}
